import axios from 'axios';

/**
 * 获取菜单列表
 */
export function getMenuList(payload: any) {
    return axios.post('/api/v1/menu/list', payload);
}

/**
 * 新增菜单
 */
export function addMenu(payload: any) {
    return axios.post('/api/v1/menu/add', payload);
}

/**
 * 更新菜单
 */
export function updateMenu(payload: any) {
    return axios.post('/api/v1/menu/edit', payload);
}
/**
 * 删除菜单
 */
export function deleteMenu(payload: any) {
    return axios.post('/api/v1/menu/delete', payload);
}
